#!/bin/bash

echo "Updating Buildroot submodule..."
git submodule update --init --recursive

echo "Checking out Buildroot stable branch..."
cd buildroot
git checkout $(git describe --tags --abbrev=0)

echo "Buildroot submodule updated to latest stable release."
